package com.vca.common.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 添加购物车参数Request对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderRefundApplyRequest对象", description="订单申请退款")
public class OrderRefundApplyRequest {
    private static final long serialVersionUID=1L;

//    @ApiModelProperty(value = "退款类型", required = true)
//    @NotNull(message = "退款类型必须填写")
//    private String applyRefundType;

    @ApiModelProperty(value = "退款理由（原因）", required = true)
    @NotNull(message = "退款理由必须填写")
    private String refundReasonWap;

    @ApiModelProperty(value = "用户退款说明")
    @Length(max = 255, message = "退款原因不能超过255个字符")
    @JsonProperty("refund_reason_wap_explain")
    private String explain;

    @ApiModelProperty(value = "订单号", required = true)
    private String orderNo;

//    @ApiModelProperty(value = "退款凭证图片(多个图片请用,(英文逗号)隔开)")
//    @JsonProperty("refund_reason_wap_img")
//    private String reasonImage;

    @ApiModelProperty(value = "待退款订单")
    @NotNull(message = "待退款订单 不能为空")
    private List<String> merOrderNos;
}
